home *** CD-ROM | disk | FTP | other *** search
/ Sound Fx / Sound Fx.iso / Software / UNZIPED / MPW181-5 / _SETUP.1 / beos_obuffer.h < prev    next >
C/C++ Source or Header  |  1997-04-21  |  1KB  |  48 lines

  1. /* beos_obuffer.h
  2.  
  3.    BEOS output buffer written by John Fehr (jfehr@themall.net)
  4.  
  5.    This program is free software; you can redistribute it and/or modify
  6.    it under the terms of the GNU General Public License as published by
  7.    the Free Software Foundation; either version 2 of the License, or
  8.    (at your option) any later version.
  9.  
  10.    This program is distributed in the hope that it will be useful,
  11.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.    GNU General Public License for more details.
  14.  
  15.    You should have received a copy of the GNU General Public License
  16.    along with this program; if not, write to the Free Software
  17.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
  18.  
  19. #ifndef BEOS_OBUFFER_H
  20. #define BEOS_OBUFFER_H
  21.  
  22. #ifdef BEOS
  23.  
  24. #include "args.h"
  25. #include "obuffer.h"
  26.  
  27. class BEOSObuffer : public Obuffer
  28. {
  29.   int16  buffer[OBUFFERSIZE];
  30.   int16 *bufferp[MAXCHANNELS];
  31.   uint32 channels;
  32.  
  33. public:
  34.     BEOSObuffer (uint32 number_of_channels, MPEG_Args *maplay_args);
  35.        ~BEOSObuffer (void);
  36.   void    append (uint32 channel, int16 value);
  37.   void    write_buffer (int32 dummy);
  38.  
  39. #ifdef SEEK_STOP
  40.   void   set_stop_flag(void);
  41.   void   clear_buffer(void);
  42. #endif
  43.  
  44. };
  45. #endif // BEOS
  46.  
  47. #endif
  48.